package com.tiger.novelAvinfo;

import java.util.List;
import java.util.Map;

import com.tiger.novelAvinfo.base.BaseActivity;
import com.tiger.novelAvinfo.base.CommonUtil;
import com.tiger.novelAvinfo.base.DataServer;
import com.tiger.novelAvinfo.base.DataServerFactory;

import android.app.Activity;
import android.os.Bundle;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
import android.view.Window;
import android.view.GestureDetector.OnGestureListener;
import android.view.View.OnClickListener;
import android.view.animation.AnimationUtils;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.ViewFlipper;

public class DetailActivity extends BaseActivity  {
	private TextView maindesc,title;
	private Button back;
	private Bundle bundle;
	private String comment,zhName;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.detail);
        CommonUtil.setAdView(this, this);
        bundle=this.getIntent().getExtras();
        comment=bundle.getString("comment");
        zhName=bundle.getString("zhName");
        if(comment==null)
        	comment="无详细资料";
        initView();
    }
    private void initView(){
    	maindesc=(TextView)this.findViewById(R.id.maindesc);
    	title=(TextView)this.findViewById(R.id.title);
    	back=(Button)this.findViewById(R.id.backBtn);
    	maindesc.setText(comment);
    	title.setText(zhName+"-详细资料");
    	back.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				DetailActivity.this.finish();
			}
    		
    	});
    }
    
}